﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Housing;

public partial class ManageCenter_ViewDaoQi : System.Web.UI.Page
{
    Apply apply = new Apply();
    protected void Page_Load(object sender, EventArgs e)
    {
        PageBind();
    }
    protected void PageBind()
    {
        DataSet dssub = apply.GetDaoQiThisMonth("SubsidyRecord", ddlstreet.SelectedValue);
        gvsubshowdaoqi.DataSource = dssub;
        gvsubshowdaoqi.DataBind();

        DataSet dsred = apply.GetDaoQiThisMonth("ReduceRecord", ddlstreet.SelectedValue);
        gvredshowdaoqi.DataSource = dsred;
        gvredshowdaoqi.DataBind();

        DataSet dskind = apply.GetDaoQiThisMonth("KindRecord", ddlstreet.SelectedValue);
        gvkindshowdaoqi.DataSource = dskind;
        gvkindshowdaoqi.DataBind();
    }
    protected void ddlstreet_SelectedIndexChanged(object sender, EventArgs e)
    {
        PageBind();
    }
}
